<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Category
 *
 * @property int $cat_id
 * @property string $cat_name
 * @property string $keywords
 * @property string $cat_desc
 * @property int $parent_id
 * @property int $sort_order
 * @property string $template_file
 * @property string $measure_unit
 * @property int $show_in_nav
 * @property string $style
 * @property int $is_show
 * @property int $grade
 * @property string $filter_attr
 * @property string|null $cate_img
 * @property int $is_top 首页顶部展示
 * @property int $is_goods 首页物品展示
 * @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Category query()
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereCatDesc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereCatId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereCatName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereCateImg($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereFilterAttr($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereGrade($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereIsGoods($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereIsShow($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereIsTop($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereKeywords($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereMeasureUnit($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereShowInNav($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereSortOrder($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereStyle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereTemplateFile($value)
 * @mixin \Eloquent
 */
class Category extends Model
{
    protected $table = 'category';
    protected $primaryKey = 'cat_id';
    protected $fillable = [
        'cat_id', 'cat_name', 'keywords', 'cat_desc', 'parent_id', 'sort_order',
        'template_file', 'measure_unit', 'show_in_nav', 'style', 'is_show', 'grade',
        'filter_attr', 'cate_img', 'is_top', 'is_goods'
    ];
}
